package com.originskyseed.platform.count.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.count.model.FeeCategory;
import org.apache.ibatis.annotations.Param;

/**
 * 费用类别表Mapper类（OSI_FEE_CATEGORY）
 * 
 * @author Tangwanghui
 */
public interface FeeCategoryMapper {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(FeeCategory record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(FeeCategory record) throws Exception;

	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(FeeCategory record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(FeeCategory record) throws Exception;



	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param isDel
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int updateByIds(@Param("isDel") Integer isDel,@Param("ids") List<String> ids) throws Exception;
	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public FeeCategory selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<FeeCategory> selectList(FeeCategory record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<FeeCategory> selectListByPage(Map<String, Object> params) throws Exception;

}